<?php if ($sf_user->hasFlash('message') or $sf_user->hasFlash('error') or $sf_user->hasFlash('alert')): ?>
<?php use_javascript('jq_alert.js');?>
<?php use_javascript('jq_draggable.js');?>
<?php use_stylesheet('alert.css');?>
<?php endif ?>  
                			<?php if ($sf_user->hasFlash('message')): ?>
                  			<script>
                			jAlert('<?php echo __($sf_user->getFlash('message')) ?>', '<?php echo __('Сообщение!') ?>');
                			</script>
							<?php endif; ?>
							<?php if ($sf_user->hasFlash('error')): ?>
                			<script>
                			jAlert('<?php echo __($sf_user->getFlash('error')) ?>', '<?php echo __('Ошибка!') ?>');
                			</script>
							<?php endif; ?>
							<?php if ($sf_user->hasFlash('alert')): ?>
                            <script> alert('<?php echo __($sf_user->getFlash('alert')) ?>') </script>
							<?php endif; ?>			